export class Scheme {
  public id: string | null = null;
  public schedulingSchemeCode: number | null = null;
  public schedulingSchemeName: number | ResourceAttribute | 0 | 1 | null = 0;
  public timeFormatId: string | null = null;
  public timeFormatName: string | null = null;
  public basicAlgorithm: number | null = null;
  public psPreSchedulingSchemeItemList: Array<SchemeItem> = [];
}

export class SchemeItem {
  public id: string | null = null;
  public schedulingSchemeId: string | null = null;
  public associationName: string | null = null;
  public ruleName: string | null = null;
  public ruleType: number | null = null;
  public priority: number | ResourceAttribute | 0 | 1 | null = null;
  public descriptionType: number | null = null;
}

export enum ResourceAttribute {
  People = 0,
  Machine = 1
}

export const ResourceAttributes = ['人力', '设备']
